<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
*{margin:0;padding:0;}
body{text-align:center;font-size:24px;font:"宋体";}
#wrapper{width:980px;height:auto;overflow:hidden;margin:0 auto;padding:5px;border:#000 solid 0px;}
#a{width:980px;height:auto;float:left;border:#000 solid 1px;background-color: #7a80bc;padding:20px;font-size:50px;}
#userinfo{width:980;height:10px;float:left;font-size:10px;}
#l_bc{width:982px;height:auto;overflow:hidden;float:left;}
#b{width:250px;height:500px;float:left;border:#BCE2F3 solid 1px;margin-top:5px;font-size:16px;background:#E4F2FB;}
#c{width:722px;height:500px;float:right;border:#000 solid 0px;margin-top:5px;}

.list ul{list-style:none;margin:7px;padding:0;} 
.list ul li{line-height:24px;border-bottom:1px dotted #ccc;} 
</style>
<title></title>

<%@ page import="ray.wx.struct.*" %>
<%
  MgUserInfo userInfo = (MgUserInfo)session.getAttribute(MgUserInfo.MG_USER_ATTR);
  if (userInfo == null){
	  response.sendRedirect(request.getContextPath() + "/index.jsp");
	  return;
  }
%>

<script type="text/javascript">
function subgo(index)
{
	var vfram = "";
	if (index == 1){
		vfram = "<iframe src=\"basicSet.jsp\" width=\"722px\" height=\"500px\" frameborder=\"no\">";
	}
	
	document.getElementById("c").innerHTML = vfram;
}

</script>

</head>
<body>
<div id="wrapper">
  <div id="a" style="color:#ffffff">
      <strong>微信公众号管理系统</strong>
  </div>
  <div id="userinfo">&nbsp用户名：<%= userInfo.userName %></div>
  <div id="l_bc">
      <div id="b" class="list">
          <ul>
          	<li><a href = "javascript:void(0)" onclick="subgo(1)">基础设置</a>
          </ul>
      </div>
      <div id="c"><iframe src="basicSet.jsp" width="722px" height="500px" frameborder="no"></iframe></div>
  </div>
</div>
</body>
</html>